package com.gongxt.data;



public class ContactInfo{

	private long phoneCid;		

	private String firstName = "";
	private String middleName = ""; 
	private String lastName = "";
	private String displayName = "";
	
	private String primaryPhone = "";
	
	private byte[] image;

	public ContactInfo() {
		this.phoneCid = -1;
		this.firstName = "";
		this.middleName = "";
		this.lastName = "";
		this.image = null;		
	}
	
	public long getPhoneCid() {
		return phoneCid;
	}
	public void setPhoneCid(long phoneCid) {
		this.phoneCid = phoneCid;
	}

	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getMiddleName() {
		return middleName;
	}
	public void setMiddleName(String middleName) {
		this.middleName = middleName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}	
	public String getDisplayName(){
		return displayName;
	}
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
	
	public String getFullName(){
		String strName =  (this.lastName == null ? "" : this.lastName)
				+ (this.middleName == null ? "" : this.middleName) 
				+ (this.firstName == null ? "" : this.firstName);
		return strName;
	}
	
	public void setPrimaryPhone(String strPhone){
		primaryPhone = strPhone;
	}
	
	public String getPrimayPhone(){
		return primaryPhone;
	}
	
	public byte[] getImage() {
		return image;
	}
	public void setImage(byte[] image) {
		this.image = image;
	}

}
